package com.cloud.alibaba.custom.event.listener;

import com.alibaba.fastjson.JSON;

import com.cloud.yangfeiself.event.DistributeEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DistributeEventListener implements ApplicationListener<DistributeEvent> {

    @Override
    public void onApplicationEvent(DistributeEvent event) {
        System.out.println("JSON.toJSONString(event) = " + JSON.toJSONString(event));
        
    }
}
